home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / textual / tex / files / !tex / TeXsource / commontex / h / eqstack < prev    next >
Encoding:
Text File  |  1988-04-08  |  1.3 KB  |  63 lines

  1. /*
  2.  *    Copyright 1986, 1987 Pat Joseph Monardo. All rights reserved.
  3.  *    Copying of this file is granted according to the provisions 
  4.  *    specified in the file COPYING which must accompany this file.
  5.  */
  6.  
  7.  
  8. /*
  9.  *        eqstack.h
  10.  */
  11.  
  12. global    ptr        save_ptr;
  13. global    mword    save_stack[];
  14. global    ptr        max_save_stack;
  15.  
  16. global    qword    cur_level;
  17. global    group    cur_group;
  18. global    ptr        cur_boundary;
  19.  
  20. #define    save_type(S)            save_stack[S].hh.hh2.b0
  21. #define    save_level(S)            save_stack[S].hh.hh2.b1
  22. #define    save_index(S)            save_stack[S].hh.hh2.rh
  23.  
  24. #define    RESTORE_OLD_VALUE        0
  25. #define    RESTORE_ZERO            1
  26. #define    INSERT_TOKEN            2
  27. #define    LEVEL_BOUNDARY            3
  28.  
  29. #define    BOTTOM_LEVEL            0
  30. #define    SIMPLE_GROUP            1
  31. #define    HBOX_GROUP                2
  32. #define    ADJUSTED_HBOX_GROUP        3
  33. #define    VBOX_GROUP                4
  34. #define    VTOP_GROUP                5
  35. #define    ALIGN_GROUP                6
  36. #define    NO_ALIGN_GROUP            7
  37. #define    OUTPUT_GROUP            8
  38. #define    MATH_GROUP                9
  39. #define    DISC_GROUP                10
  40. #define    INSERT_GROUP            11
  41. #define    VCENTER_GROUP            12
  42. #define    MATH_CHOICE_GROUP        13
  43. #define    SEMI_SIMPLE_GROUP        14
  44. #define    MATH_SHIFT_GROUP        15
  45. #define    MATH_LEFT_GROUP            16
  46. #define    MAX_GROUP_CODE            16
  47.  
  48. #define    saved(I)    save_stack[save_ptr + I].i
  49.  
  50. int        new_save_level();
  51. int        eq_destroy();
  52. int        eq_save();
  53. int        eq_define();
  54. int        eq_word_define();
  55. int        geq_define();
  56. int        geq_word_define();
  57. int        unsave();
  58. int        offsave();
  59.  
  60. #ifdef STAT
  61. int        restore_trace();
  62. #endif
  63.